#!/usr/bin/python

import time

try:
    f = open("test.txt")
    for line in f:
        # 在此按Ctrl-C中断
        time.sleep(1)
        print(line)
finally:
    f.close()
    print("Cleaning up ..  closing the file")
